Disjoint union. The instance might be either Left or Right.
This type is based on scala.Either.
scala.Either
Type of Left
Type of Right
Returns the result of applying the predicate to the value if this is Right or true if this is Left.
true
Returns the result of applying the predicate to the value if this is Right or false if this is Left.
false
Returns true if the element is equal to the value of this Either, or false otherwise.
Returns the same Right if the predicate is satisfied for the value. Otherwise returns null.
null
Returns the same Right casted to type T if it is T. Otherwise returns null.
Returns Some containing the same Right casted to type T if it is T. Otherwise returns None.
Returns the same Right if the predicate is not satisfied for the value. Otherwise returns null.
Returns Some containing the same Right if the predicate is not satisfied for the value. Otherwise returns None.
Returns Some containing the same Right if the predicate is satisfied for the value. Otherwise returns None.
Transforms Left with leftTransform or Right with rightTransform.
Runs action if this is a Right. Returns Unit without any action if this is a Left.
Gets value of this Right.
Gets value of this Right or null if this is Left.
Maps value of this Right using transform.
Returns false if the predicate is met by the value if this is Right or true otherwise.
Swaps Left to Right and Right to Left.
Returns a Some containing the Right value if it exists, or a None if this is a Left.
Returns true if this is a Left or false if this is Right.
Returns true if this is a Right or false if this is Left.
Projects Either as Left.
Projects Either as Right.
Returns the same Right if its value is not null. Otherwise returns null.
Returns Some containing the same Right if its value is not null. Otherwise returns None.
Returns the same Right if the predicate is satisfied for the value, Left(zero) if the predicate is not satisfied for the value, or the same Left if this is Left.
Left(zero)
Maps value of this Right to a new Either using transform.
Gets value of this Right or default value if this is Left.
Returns this if this is Right. Otherwise returns value of Left.
Returns this if this is Left. Otherwise returns value of Right.
Merges Left and Right of the same type to a single value.